package ysm.controller.admin;

import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		System.out.println(s.substring(s.length()-6, s.length()));
		System.out.println(s.substring(-2));
		sc.close();
	}
}
